//
// Copyright (c) 2019-2023 BPer
//

#ifndef SRC_BPERMETAPLAYER_H_
#define SRC_BPERMETAPLAYER_H_
#include "BPerrecordthread.h"
#include <bperplayer/BPerPlayerHandle.h>
#include <bperstream/BPerStreamType.h>

#include <bperutil/BPerAvInfoType.h>
#include <bperutil/sys/BPerSysMessageI.h>
class BPerMetaplayer:public BPerSysMessageI {
public:
	BPerMetaplayer();
	virtual ~BPerMetaplayer();

	BPerRecordThread *m_videoThread;
	BPerPlayerHandle *m_player;
	BPerStreamConfig m_conf;
	void initVideoThread(BPerRecordThread *prt);

	void success();
	void failure(int32_t errcode);
	void on_m_b_play_clicked();
protected:
	BPerContext* m_context;
private:
	bool m_isStartplay;

};

#endif /* SRC_BPERMETAPLAYER_H_ */
